package cn.yunhe.vote.service;

import cn.yunhe.vote.dao.IVoteDao;
import cn.yunhe.vote.dao.impl.VoteDao;
import cn.yunhe.vote.entity.Vote;

import java.util.List;

public class VoteService implements IVoteService {

    IVoteDao voteDao=new VoteDao();

    @Override
    public boolean addVote(int id) {
        return voteDao.addVote(id);
    }

    @Override
    public List<Vote> allVote() {
        return voteDao.allVote();
    }
}
